about summary refs log tree commit diff
path: root/fun/uggc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'fun/uggc/default.nix')
-rw-r--r--fun/uggc/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/fun/uggc/default.nix b/fun/uggc/default.nix
new file mode 100644
index 000000000000..49160071f586
--- /dev/null
+++ b/fun/uggc/default.nix
@@ -0,0 +1,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
+  '';
+})