blob: b4c610303ec29b225cda907f45d40caabe3a34c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, fetchgit, python38 }:
python38.pkgs.buildPythonApplication rec {
pname = "systemd2nix";
url = "https://github.com/DavHau/systemd2nix";
version = "bc9787b79187ae6ef7cd0da33a771693c99e04e1";
src = fetchgit {
inherit url;
rev = version;
sha256 = "03hc7v8cl8vzj1gpnxjwjkkbkh3c8g68ifvci2a5ggs0w83vrbrf";
};
doCheck = false;
dontBuild = true;
format = "other";
installPhase = ''
runHook preInstall
mkdir --parents $out/bin $out/share/${pname}
cp ${src}/${pname}.py $out/share/${pname}
makeWrapper ${python38}/bin/python $out/bin/${pname} --add-flags $out/share/${pname}/${pname}.py
runHook postInstall
'';
meta = with lib; {
homepage = url;
license = licenses.mit;
platforms = platforms.linux;
description = "Convert systemd service files to Nix syntax";
};
}
|