tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mimeo: migrate to pyproject = true, clean up installation
TomaSajt
6 months ago
b29dc3a7
9c492c32
+8
-13
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
mi
mimeo
package.nix
+8
-13
pkgs/by-name/mi/mimeo/package.nix
···
12
python3Packages.buildPythonApplication {
13
pname = "mimeo";
14
inherit version;
15
-
format = "setuptools";
16
17
src = fetchurl {
18
url = "https://xyne.dev/projects/mimeo/src/mimeo-${version}.tar.xz";
19
hash = "sha256-CahvSypwR1aHVDHTdtty1ZfaKBWPolxc73uZ5OyeqZA=";
20
};
21
22
-
buildInputs = [
23
-
file
24
-
desktop-file-utils
25
-
];
26
27
-
propagatedBuildInputs = [ python3Packages.pyxdg ];
28
29
-
preConfigure = ''
30
substituteInPlace Mimeo.py \
31
-
--replace "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \
32
-
"EXE_UPDATE_DESKTOP_DATABASE = '${desktop-file-utils}/bin/update-desktop-database'" \
33
-
--replace "EXE_FILE = 'file'" \
34
-
"EXE_FILE = '${file}/bin/file'"
35
'';
36
-
37
-
installPhase = "install -Dm755 Mimeo.py $out/bin/mimeo";
38
39
doInstallCheck = true;
40
installCheckPhase = ''
···
12
python3Packages.buildPythonApplication {
13
pname = "mimeo";
14
inherit version;
15
+
pyproject = true;
16
17
src = fetchurl {
18
url = "https://xyne.dev/projects/mimeo/src/mimeo-${version}.tar.xz";
19
hash = "sha256-CahvSypwR1aHVDHTdtty1ZfaKBWPolxc73uZ5OyeqZA=";
20
};
21
22
+
build-system = [ python3Packages.setuptools ];
0
0
0
23
24
+
dependencies = [ python3Packages.pyxdg ];
25
26
+
postPatch = ''
27
substituteInPlace Mimeo.py \
28
+
--replace-fail "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \
29
+
"EXE_UPDATE_DESKTOP_DATABASE = '${desktop-file-utils}/bin/update-desktop-database'" \
30
+
--replace-fail "EXE_FILE = 'file'" \
31
+
"EXE_FILE = '${file}/bin/file'"
32
'';
0
0
33
34
doInstallCheck = true;
35
installCheckPhase = ''