about summary refs log blame commit diff
path: root/fun/uggc/default.nix
blob: 980ad16bcc9dfb89891d8c082056198b0923e1fb (plain) (tree)
1
2
3
4
5
                     

   

                                     








                                           

                          




                                                                     
{ 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
  '';
})