about summary refs log tree commit diff
path: root/fun/uggc/default.nix
blob: 49160071f5869f5859798eb26e4828eced9eb021 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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
  '';
})