hydra-packet-importer: fix expression
worldofpeace committed
Apr 27, 2019 at 07:19 UTC
4424894763ed8c0eae1957a833e0e14226c1ecf0
1 file changed
+7
-11
hydra-packet-importer/default.nix
+7
-11
@@ -1,20 +1,16 @@
1
-{ stdenv, python3 }:
2
-stdenv.mkDerivation {
1
+{ python3 }:
2
+python3.pkgs.buildPythonApplication {
3
name = "hydra-packet-importer";
4
src = ./.;
5
6
- buildInputs = [
7
- (python3.withPackages (ps: [
8
- ps.packet-python
9
- ]))
10
- ];
6
+ format = "other";
7
12
- buildPhase = ''
13
- patchShebangs ./import.py
14
- '';
8
+ propagatedBuildInputs = [
9
+ python3.pkgs.packet-python
10
+ ];
11
12
installPhase = ''
13
mkdir -p $out/bin
18
- mv ./import.py $out/bin/hydra-packet-importer
14
+ mv import.py $out/bin/hydra-packet-importer
15
'';
16
}