2022-05-19 14:39:52 +00:00
|
|
|
{ depot, pkgs, ... }:
|
2020-09-30 03:42:59 +00:00
|
|
|
|
|
|
|
let
|
2022-05-19 14:39:52 +00:00
|
|
|
inherit (depot.third_party) gopkgs;
|
|
|
|
|
2020-09-30 03:42:59 +00:00
|
|
|
uggc = depot.nix.buildGo.program {
|
|
|
|
name = "uggc";
|
|
|
|
srcs = [
|
|
|
|
./main.go
|
|
|
|
];
|
|
|
|
deps = [
|
|
|
|
gopkgs."github.com".pkg.browser.gopkg
|
|
|
|
];
|
|
|
|
};
|
2022-05-19 14:39:52 +00:00
|
|
|
in
|
|
|
|
uggc.overrideAttrs (old: {
|
2020-09-30 03:42:59 +00:00
|
|
|
buildCommand = old.buildCommand + ''
|
|
|
|
install -D ${./uggc.desktop} $out/share/applications/uggc.desktop
|
|
|
|
sed "s|@out@|$out|g" -i $out/share/applications/uggc.desktop
|
|
|
|
'';
|
|
|
|
})
|