Skip to content

Commit a6540ad

Browse files
authored
detach: init at 0.2.3 (#414568)
2 parents 9800cc5 + cb742ce commit a6540ad

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pkgs/by-name/de/detach/package.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchzip,
5+
installShellFiles,
6+
}:
7+
8+
stdenv.mkDerivation rec {
9+
pname = "detach";
10+
version = "0.2.3";
11+
12+
src = fetchzip {
13+
url = "http://inglorion.net/download/detach-${version}.tar.bz2";
14+
hash = "sha256-nnhJGtmPlTeqM20FAKRyhhSMViTXFpQT0A1ol4lhsoc=";
15+
};
16+
17+
nativeBuildInputs = [ installShellFiles ];
18+
19+
dontConfigure = true;
20+
21+
makeFlags = [ "PREFIX=$(out)" ];
22+
23+
postInstall = ''
24+
installShellCompletion --cmd detach \
25+
--zsh contrib/zsh-completer/_detach
26+
'';
27+
28+
doCheck = false;
29+
30+
meta = {
31+
description = "Utility for running a command detached from the current terminal";
32+
homepage = "https://inglorion.net/software/detach/";
33+
license = lib.licenses.mit;
34+
mainProgram = "detach";
35+
maintainers = with lib.maintainers; [ pbsds ];
36+
platforms = lib.platforms.unix;
37+
};
38+
}

0 commit comments

Comments
 (0)