blob: b12023b05b45fb56324dc57818fb1139fb22c55d (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ stdenv
, fetchFromGitHub
, python3
}:
stdenv.mkDerivation rec {
name = "just-import-tools";
version = "2024-06-25";
buildInputs = [ (python3.withPackages (ps: [])) ];
srcjust = fetchFromGitHub {
owner = "just-buildsystem";
repo = "justbuild";
rev = "v1.3.1";
sha256 = "sha256-kv7HpDEYZml5uk06s8Cxt5rEpxaJBz9s+or6Od1q4Io=";
};
srcrustrules = fetchFromGitHub {
owner = "just-buildsystem";
repo = "rules-rust";
rev = "bf3e05a614f1de5a9a8a0f8e40f1dd9e1f6609da";
sha256 = "sha256-8y10ZmZpeTGtbkIeneaVISyMbVKfIi3gHqyvztnKn0M=";
};
unpackPhase = ''
cp $srcjust/bin/just-import-git.py .
cp $srcjust/bin/just-deduplicate-repos.py .
cp $srcrustrules/bin/hdump.py .
cp $srcrustrules/bin/just-import-cargo.py .
'';
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp just-import-git.py $out/bin/just-import-git
cp just-deduplicate-repos.py $out/bin/just-deduplicate-repos
cp hdump.py $out/bin/hdump
cp just-import-cargo.py $out/bin/just-import-cargo
chmod 555 $out/bin/just-import-git $out/bin/just-deduplicate-repos
chmod 555 $out/bin/hdump $out/bin/just-import-cargo
'';
}
|