app2unit: 0.9.2 -> 1.0.0 (#422808)
This commit is contained in:
@@ -2,23 +2,39 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
dash,
|
||||
scdoc,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "app2unit";
|
||||
version = "0.9.2";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Vladimir-csp";
|
||||
repo = "app2unit";
|
||||
tag = "v${version}";
|
||||
sha256 = "sha256-CwiB/Co75BbVXem2XD2i7kccgjcDk8a0lXCOoz0QVIc=";
|
||||
sha256 = "sha256-xHqPCA9ycPcImmyMrJZEfnfrFZ3sKfP/mhJ86CHLTQ8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ scdoc ];
|
||||
|
||||
buildPhase = ''
|
||||
scdoc < app2unit.1.scd > app2unit.1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dt $out/bin app2unit
|
||||
ln -s $out/bin/app2unit $out/bin/app2unit-open
|
||||
ln -s $out/bin/app2unit $out/bin/app2unit-term
|
||||
|
||||
for link in \
|
||||
app2unit-open \
|
||||
app2unit-open-scope \
|
||||
app2unit-open-service \
|
||||
app2unit-term \
|
||||
app2unit-term-scope \
|
||||
app2unit-term-service
|
||||
do
|
||||
ln -s $out/bin/app2unit $out/bin/$link
|
||||
done
|
||||
'';
|
||||
|
||||
dontPatchShebangs = true;
|
||||
|
||||
Reference in New Issue
Block a user