a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
21 lines
440 B
Nix
21 lines
440 B
Nix
{ 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
|
|
'';
|
|
})
|