tvl-depot/fun/uggc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
430 B
Nix
Raw Normal View History

{ depot, pkgs, ... }@args:
let
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
'';
})