diff options
Diffstat (limited to 'fun/uggc/default.nix')
-rw-r--r-- | fun/uggc/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fun/uggc/default.nix b/fun/uggc/default.nix new file mode 100644 index 000000000000..ca622666dcd5 --- /dev/null +++ b/fun/uggc/default.nix @@ -0,0 +1,20 @@ +{ depot, pkgs, ... }: + +let + inherit (depot.third_party) gopkgs; + + uggc = depot.nix.buildGo.program { + name = "uggc"; + srcs = [ + ./main.go + ]; + deps = [ + gopkgs."github.com".pkg.browser.gopkg + ]; + }; +in uggc.overrideAttrs(old: { + buildCommand = old.buildCommand + '' + install -D ${./uggc.desktop} $out/share/applications/uggc.desktop + sed "s|@out@|$out|g" -i $out/share/applications/uggc.desktop + ''; +}) |