tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
restool: init at 20.12
Pierre Bourdon
4 years ago
1fedcb8f
0f783d55
+44
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
restool
default.nix
top-level
all-packages.nix
+42
pkgs/os-specific/linux/restool/default.nix
···
1
1
+
{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
pname = "restool";
5
5
+
version = "20.12";
6
6
+
7
7
+
src = fetchgit {
8
8
+
url = "https://source.codeaurora.org/external/qoriq/qoriq-components/restool";
9
9
+
rev = "LSDK-${version}";
10
10
+
sha256 = "137xvvms3n4wwb5v2sv70vsib52s3s314306qa0mqpgxf9fb19zl";
11
11
+
};
12
12
+
13
13
+
nativeBuildInputs = [ file ];
14
14
+
buildInputs = [ bash coreutils dtc gawk gnugrep gnused ];
15
15
+
16
16
+
makeFlags = [
17
17
+
"prefix=$(out)"
18
18
+
"VERSION=${version}"
19
19
+
];
20
20
+
21
21
+
preFixup = ''
22
22
+
# wrapProgram interacts badly with the ls-main tool, which relies on the
23
23
+
# shell's $0 argument to figure out which operation to run (busybox-style
24
24
+
# symlinks). Instead, inject the environment directly into the shell
25
25
+
# scripts we need to wrap.
26
26
+
for tool in ls-append-dpl ls-debug ls-main; do
27
27
+
sed -i "1 a export PATH=\"$out/bin:${lib.makeBinPath buildInputs}:\$PATH\"" $out/bin/$tool
28
28
+
done
29
29
+
'';
30
30
+
31
31
+
meta = with lib; {
32
32
+
description = "DPAA2 Resource Management Tool";
33
33
+
longDescription = ''
34
34
+
restool is a user space application providing the ability to dynamically
35
35
+
create and manage DPAA2 containers and objects from Linux.
36
36
+
'';
37
37
+
homepage = "https://source.codeaurora.org/external/qoriq/qoriq-components/restool/about/";
38
38
+
license = licenses.bsd3;
39
39
+
platforms = platforms.linux;
40
40
+
maintainers = with maintainers; [ delroth ];
41
41
+
};
42
42
+
}
+2
pkgs/top-level/all-packages.nix
···
8549
8549
inherit (callPackage ../development/misc/resholve { })
8550
8550
resholve resholvePackage;
8551
8551
8552
8552
+
restool = callPackage ../os-specific/linux/restool {};
8553
8553
+
8552
8554
reuse = callPackage ../tools/package-management/reuse { };
8553
8555
8554
8556
rewritefs = callPackage ../os-specific/linux/rewritefs { };