flameshot-once: init at 1.0.0
This commit is contained in:
parent
30b59aa4d8
commit
24d008d92d
20
krebs/5pkgs/haskell/flameshot-once.nix
Normal file
20
krebs/5pkgs/haskell/flameshot-once.nix
Normal file
@ -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;
|
||||
}
|
14
krebs/5pkgs/simple/flameshot-once.nix
Normal file
14
krebs/5pkgs/simple/flameshot-once.nix
Normal file
@ -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
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user