2021-04-10 13:38:50 +02:00
|
|
|
{ depot, pkgs, ... }:
|
2020-06-15 19:20:09 +02:00
|
|
|
|
|
|
|
let
|
2021-04-10 13:38:50 +02:00
|
|
|
inherit (depot.third_party) gopkgs;
|
|
|
|
|
2020-06-15 20:29:19 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
})
|