tvl-depot/fun/uggc/default.nix
Vincent Ambo f2443911cc refactor(fun): Consistent use of depot.third_party vs. pkgs
In preparation for the solution of b/108, we need to consistently use
`depot.third_party` for packages that are only packed in the TVL depot
and `pkgs` for things that come from nixpkgs.

This commit cleans up a huge chunk of these uses in //fun

Change-Id: I45a7b392a9749fa7859ff5100dcea415bda807c3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2914
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2021-04-10 12:04:30 +00:00

20 lines
439 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
'';
})