diff options
Diffstat (limited to 'fun/uggc/default.nix')
-rw-r--r-- | fun/uggc/default.nix | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/fun/uggc/default.nix b/fun/uggc/default.nix index 398e7b6ffe6c..49160071f586 100644 --- a/fun/uggc/default.nix +++ b/fun/uggc/default.nix @@ -1,14 +1,19 @@ -{ depot, ... }@args: +{ depot, pkgs, ... }@args: let - gopkgs = depot.third_party.gopkgs; -in -depot.nix.buildGo.program { - name = "uggc"; - srcs = [ - ./main.go - ]; - deps = [ - gopkgs."github.com".pkg.browser.gopkg - ]; -} + inherit (pkgs) 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 + ''; +}) |