nix/package/default.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | { pkgs ? ( let inherit (builtins) fetchTree fromJSON readFile; inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix; in import (fetchTree nixpkgs.locked) { overlays = [ (import "${fetchTree gomod2nix.locked}/overlay.nix") ]; } ), buildGoApplication ? pkgs.buildGoApplication, }: let inherit (pkgs) lib nixosTests; in buildGoApplication { pname = "elgit"; version = "0.1"; src = ../..; modules = ../gomod2nix.toml; passthru.tests = { inherit (nixosTests) legit; }; meta = { description = "Web frontend for git"; homepage = "https://git.alanpearce.eu/elgit"; license = lib.licenses.mit; maintainers = [ lib.maintainers.alanpearce ]; mainProgram = "elgit"; }; } |