diff options
Diffstat (limited to 'fun/uggc/default.nix')
-rw-r--r-- | fun/uggc/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fun/uggc/default.nix b/fun/uggc/default.nix new file mode 100644 index 000000000000..980ad16bcc9d --- /dev/null +++ b/fun/uggc/default.nix @@ -0,0 +1,21 @@ +{ 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 + ''; +}) |