summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-02-07 19:06:14 +0100
committerlassulus <lassulus@lassul.us>2019-02-08 05:19:48 +0100
commit24d008d92d24633054e37dd69f983512bf49a69d (patch)
tree3c362c2c7d1c661129e9e0a1e40290a26c25d5d1 /krebs/5pkgs
parent30b59aa4d86d87c6aa8778c6c309d40b3724ca64 (diff)
flameshot-once: init at 1.0.0
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r--krebs/5pkgs/haskell/flameshot-once.nix20
-rw-r--r--krebs/5pkgs/simple/flameshot-once.nix14
2 files changed, 34 insertions, 0 deletions
diff --git a/krebs/5pkgs/haskell/flameshot-once.nix b/krebs/5pkgs/haskell/flameshot-once.nix
new file mode 100644
index 00000000..b90dd2cb
--- /dev/null
+++ b/krebs/5pkgs/haskell/flameshot-once.nix
@@ -0,0 +1,20 @@
+{ mkDerivation, async, base, blessings, dbus, fetchgit
+, iso8601-time, process, stdenv, text, time, unagi-chan, unix
+}:
+mkDerivation {
+ pname = "flameshot-once";
+ version = "1.0.0";
+ src = fetchgit {
+ url = "https://cgit.krebsco.de/flameshot-once";
+ sha256 = "0fjk5pgjy7r0xz4i38qb85x1z4jp8bas2mmgznp7glidz362w390";
+ rev = "fb5636483871fbafe9b286b377c339c8ddf8b4f8";
+ fetchSubmodules = true;
+ };
+ isLibrary = false;
+ isExecutable = true;
+ executableHaskellDepends = [
+ async base blessings dbus iso8601-time process text time unagi-chan
+ unix
+ ];
+ license = stdenv.lib.licenses.mit;
+}
diff --git a/krebs/5pkgs/simple/flameshot-once.nix b/krebs/5pkgs/simple/flameshot-once.nix
new file mode 100644
index 00000000..7550a467
--- /dev/null
+++ b/krebs/5pkgs/simple/flameshot-once.nix
@@ -0,0 +1,14 @@
+{ pkgs }:
+
+pkgs.symlinkJoin {
+ name = "flameshot-once-wrapper";
+ paths = [
+ (pkgs.writeDashBin "flameshot-once" ''
+ export PATH=${pkgs.stdenv.lib.makeBinPath [
+ pkgs.flameshot
+ ]}''${PATH:+:$PATH}
+ exec ${pkgs.haskellPackages.flameshot-once}/bin/flameshot-once "$@"
+ '')
+ pkgs.haskellPackages.flameshot-once
+ ];
+}