added j-jzk lanshare

This commit is contained in:
Jakub Kropáček 2025-03-21 10:48:50 +01:00
parent 1d4a828967
commit f1012ade57
4 changed files with 30 additions and 0 deletions

View file

@ -73,6 +73,7 @@
in in
{ {
uv-bin = pkgs.callPackage ./packages/uv { }; uv-bin = pkgs.callPackage ./packages/uv { };
lanshare = pkgs.callPackage ./packages/lanshare { };
}; };
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
hydraJobs = { hydraJobs = {

View file

@ -39,6 +39,7 @@ in
losslesscut-bin losslesscut-bin
qcad qcad
bottles bottles
lanshare
]; ];
services.syncthing = { services.syncthing = {
enable = true; enable = true;

View file

@ -6,6 +6,7 @@ in
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
uv-bin = self.packages.x86_64-linux.uv-bin; uv-bin = self.packages.x86_64-linux.uv-bin;
lanshare = self.packages.x86_64-linux.lanshare;
}) })
]; ];
} }

View file

@ -0,0 +1,27 @@
{
stdenv,
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "lanshare";
version = "1.0";
src = fetchFromGitHub {
owner = "j-jzk";
repo = "lanshare";
rev = "v${version}";
hash = "sha256-NdOjia2snKiIj/Urz1QxZ81G35T/onVD7+DzT9dBvmE=";
};
ldflags = [ "-s -w" ];
vendorHash = "sha256-mDTSoN5evVwpGJePjwvwoOcaP9YwByjpe0VGVbme22U=";
meta = {
description = "Quickly share files on the LAN";
homepage = "https://github.com/j-jzk/lanshare";
license = lib.licenses.bsd3;
};
}