tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
oama: wrap binary with coreutils and keyring manager
Johan Larsson
8 months ago
8611acd9
1bcbf9e0
+19
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
oa
oama
package.nix
+19
pkgs/by-name/oa/oama/package.nix
···
2
2
haskell,
3
3
lib,
4
4
stdenv,
5
5
+
coreutils,
6
6
+
libsecret,
7
7
+
gnupg,
8
8
+
makeBinaryWrapper,
9
9
+
withLibsecret ? true, # default oama config uses libsecret
10
10
+
withGpg ? false,
5
11
}:
6
12
let
7
13
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
···
12
18
maintainers = with lib.maintainers; [ aidalgol ];
13
19
14
20
passthru.updateScript = ./update.sh;
21
21
+
22
22
+
buildDepends = [
23
23
+
makeBinaryWrapper
24
24
+
];
25
25
+
26
26
+
postInstall = ''
27
27
+
wrapProgram $out/bin/oama \
28
28
+
--prefix PATH : ${
29
29
+
lib.makeBinPath (
30
30
+
[ coreutils ] ++ lib.optional withLibsecret libsecret ++ lib.optional withGpg gnupg
31
31
+
)
32
32
+
}
33
33
+
'';
15
34
};
16
35
17
36
raw-pkg = haskell.packages.ghc912.callPackage ./generated-package.nix { };