tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ripasso-cursive: 0.4.0 -> 0.5.1
Stig Palmquist
4 years ago
89f642c0
ee25ce04
+74
-25
2 changed files
expand all
collapse all
unified
split
pkgs
tools
security
ripasso
cursive.nix
fix-tests.patch
+12
-10
pkgs/tools/security/ripasso/cursive.nix
···
1
-
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, ncurses, python3, openssl, libgpgerror, gpgme, xorg, AppKit, Security }:
2
3
with rustPlatform;
4
buildRustPackage rec {
5
-
version = "0.4.0";
6
pname = "ripasso-cursive";
7
8
src = fetchFromGitHub {
9
owner = "cortex";
10
repo = "ripasso";
11
rev = "release-${version}";
12
-
sha256 = "164da20j727p8l7hh37j2r8pai9sj402nhswvg0nrlgj53nr6083";
13
};
14
15
patches = [ ./fix-tests.patch ];
16
17
-
cargoSha256 = "1sv5czhrafk15yj5xyd1x9jdqn1dz6aqpxxnyz49icx53qlg9f8g";
18
19
-
cargoBuildFlags = [ "-p ripasso-cursive -p ripasso-man" ];
20
21
-
nativeBuildInputs = [ pkg-config gpgme python3 ];
22
buildInputs = [
23
ncurses openssl libgpgerror gpgme xorg.libxcb
24
] ++ lib.optionals stdenv.isDarwin [ AppKit Security ];
25
26
-
preFixup = ''
27
-
mkdir -p "$out/man/man1"
28
-
$out/bin/ripasso-man > $out/man/man1/ripasso-cursive.1
29
-
rm $out/bin/ripasso-man
0
0
30
'';
31
32
meta = with lib; {
···
1
+
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, ncurses, python3, openssl, libgpgerror, gpgme, xorg, AppKit, Security, installShellFiles }:
2
3
with rustPlatform;
4
buildRustPackage rec {
5
+
version = "0.5.1";
6
pname = "ripasso-cursive";
7
8
src = fetchFromGitHub {
9
owner = "cortex";
10
repo = "ripasso";
11
rev = "release-${version}";
12
+
sha256 = "1jx6qv7skikl1ap3g1r34rkz4ab756kra7dgwwv45vl2fb6x74k4";
13
};
14
15
patches = [ ./fix-tests.patch ];
16
17
+
cargoSha256 = "1li1gmcs7lnjr4qhzs0rrgngdcxy1paiibjwk9zx2rrs71021cgk";
18
19
+
cargoBuildFlags = [ "-p ripasso-cursive" ];
20
21
+
nativeBuildInputs = [ pkg-config gpgme python3 installShellFiles ];
22
buildInputs = [
23
ncurses openssl libgpgerror gpgme xorg.libxcb
24
] ++ lib.optionals stdenv.isDarwin [ AppKit Security ];
25
26
+
preCheck = ''
27
+
export HOME=$TMPDIR
28
+
'';
29
+
30
+
postInstall = ''
31
+
installManPage target/man-page/cursive/ripasso-cursive.1
32
'';
33
34
meta = with lib; {
+62
-15
pkgs/tools/security/ripasso/fix-tests.patch
···
1
-
diff --git a/src/pass/test.rs b/src/pass/test.rs
2
-
index c980a2f..2e6c8cc 100644
3
--- a/src/pass/test.rs
4
-
+++ b/src/pass/test.rs
5
-
@@ -56,6 +56,7 @@ fn populate_password_list_small_repo() {
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
base_path.pop();
7
base_path.pop();
8
base_path.pop();
9
+ base_path.pop();
10
base_path.push("testres");
11
12
-
let mut password_dir: PathBuf = base_path.clone();
13
-
@@ -84,6 +85,7 @@ fn populate_password_list_repo_with_deleted_files() {
14
base_path.pop();
15
base_path.pop();
16
base_path.pop();
17
+ base_path.pop();
18
base_path.push("testres");
19
20
-
let mut password_dir: PathBuf = base_path.clone();
21
-
@@ -112,6 +114,7 @@ fn populate_password_list_directory_without_git() {
22
base_path.pop();
23
base_path.pop();
24
base_path.pop();
25
+ base_path.pop();
26
base_path.push("testres");
27
28
-
let mut password_dir: PathBuf = base_path.clone();
29
-
@@ -149,4 +152,4 @@ fn parse_signing_keys_empty() {
30
-
let result = PasswordStore::parse_signing_keys(&None).unwrap();
0
0
0
0
31
32
-
assert_eq!(result.len(), 0);
33
-
-}
34
-
\ No newline at end of file
35
-
+}
0
0
0
0
0
···
0
0
1
--- a/src/pass/test.rs
2
+
+++ a/src/pass/test.rs
3
+
@@ -83,6 +83,7 @@
4
+
base_path.pop();
5
+
base_path.pop();
6
+
base_path.pop();
7
+
+ base_path.pop();
8
+
base_path.push("testres");
9
+
10
+
let home: PathBuf = base_path.clone();
11
+
@@ -114,6 +115,7 @@
12
+
base_path.pop();
13
+
base_path.pop();
14
+
base_path.pop();
15
+
+ base_path.pop();
16
+
base_path.push("testres");
17
+
18
+
let home: PathBuf = base_path.clone();
19
+
@@ -144,6 +146,7 @@
20
+
base_path.pop();
21
+
base_path.pop();
22
+
base_path.pop();
23
+
+ base_path.pop();
24
+
base_path.push("testres");
25
+
26
+
let home: PathBuf = base_path.clone();
27
+
@@ -185,6 +188,7 @@
28
+
base_path.pop();
29
+
base_path.pop();
30
+
base_path.pop();
31
+
+ base_path.pop();
32
+
base_path.push("testres");
33
+
34
+
let home: PathBuf = base_path.clone();
35
+
@@ -220,6 +224,7 @@
36
+
base_path.pop();
37
+
base_path.pop();
38
+
base_path.pop();
39
+
+ base_path.pop();
40
+
base_path.push("testres");
41
+
42
+
let home: PathBuf = base_path.clone();
43
+
@@ -267,6 +272,7 @@
44
base_path.pop();
45
base_path.pop();
46
base_path.pop();
47
+ base_path.pop();
48
base_path.push("testres");
49
50
+
let home: PathBuf = base_path.clone();
51
+
@@ -298,6 +304,7 @@
52
base_path.pop();
53
base_path.pop();
54
base_path.pop();
55
+ base_path.pop();
56
base_path.push("testres");
57
58
+
let home: PathBuf = base_path.clone();
59
+
@@ -337,6 +344,7 @@
60
base_path.pop();
61
base_path.pop();
62
base_path.pop();
63
+ base_path.pop();
64
base_path.push("testres");
65
66
+
let home: PathBuf = base_path.clone();
67
+
@@ -828,6 +836,7 @@
68
+
base_path.pop();
69
+
base_path.pop();
70
+
base_path.pop();
71
+
+ base_path.pop();
72
+
base_path.push("testres");
73
74
+
let home: PathBuf = base_path.clone();
75
+
@@ -860,6 +869,7 @@
76
+
base_path.pop();
77
+
base_path.pop();
78
+
base_path.pop();
79
+
+ base_path.pop();
80
+
base_path.pop();
81
+
base_path.push("testres");
82
+