File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 13
13
, defaultCrateOverrides ? pkgs . defaultCrateOverrides
14
14
, nix ? pkgs . nix
15
15
, cargo ? pkgs . cargo
16
+ , libsecret ? pkgs . libsecret
16
17
, callPackage ? pkgs . callPackage
17
18
, nix-prefetch-git ? pkgs . nix-prefetch-git
18
19
# Seperate arguements that are NOT filled by callPackage.
26
27
baseName = builtins . baseNameOf ( builtins . toString name ) ;
27
28
in
28
29
! ( baseName == "templates" && type == "directory" ) ;
29
- crate2nix = cargoNix . rootCrate . build . override {
30
+ crate2nix = ( cargoNix . rootCrate . build . override {
30
31
testCrateFlags = [
31
32
"--skip nix_integration_tests"
32
33
] ;
46
47
buildInputs = lib . optionals stdenv . isDarwin [ darwin . apple_sdk . frameworks . Security ] ;
47
48
} ;
48
49
} ;
49
- } ;
50
+ } ) . overrideAttrs ( attrs : {
51
+ postInstall = lib . optionalString stdenv . isLinux ''
52
+ patchelf --add-needed ${ libsecret } /lib/libsecret-1.so.0 $out/bin/crate2nix
53
+ '' ;
54
+ } ) ;
50
55
set_templates = if release then "" else "--set TEMPLATES_DIR ${ ./templates } " ;
51
56
in
52
57
symlinkJoin {
You can’t perform that action at this time.
0 commit comments