diff --git a/flake.nix b/flake.nix index b9f4376..4d1cfcf 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,14 @@ nix-index-database, nixpkgs, ... - } @ inputs: { + } @ inputs: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + packages.${system} = { + iconifydl = pkgs.callPackage ./pkgs/iconifydl.nix {}; + }; + nixosConfigurations.wallsocket = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = {inherit inputs;}; diff --git a/pkgs/iconifydl.nix b/pkgs/iconifydl.nix new file mode 100644 index 0000000..d362626 --- /dev/null +++ b/pkgs/iconifydl.nix @@ -0,0 +1,18 @@ +{ + buildGoModule, + fetchFromGitHub, +}: let + version = "0.0.2"; +in + buildGoModule { + pname = "iconifydl"; + inherit version; + + src = fetchFromGitHub { + owner = "ksckaan1"; + repo = "iconifydl"; + rev = "v${version}"; + hash = "sha256-mSeHKv/JGrasxng6J3u5WkSk/ll1oucC2ZSN+9CYg7E="; + }; + vendorHash = "sha256-0ZuhzB9HAoA3ZGJY98otaMKI+VhFPbHXlco49gwmb9o="; + }