tangled
alpha
login
or
join now
foxgirl.engineering
/
password-hash-gen
0
fork
atom
simple webpage to generate an argon2id hash for a given password
0
fork
atom
overview
issues
pulls
pipelines
nix: add derivation for site
foxgirl.engineering
7 months ago
2c84eee8
24078299
verified
This commit was signed with the committer's
known signature
.
foxgirl.engineering
SSH Key Fingerprint:
SHA256:zgspAKSFKA6vB30vPBY6QSa/osCDgrr8YASW+mNz13M=
+71
-1
3 changed files
expand all
collapse all
unified
split
.gitignore
default.nix
nix
package.nix
+2
-1
.gitignore
···
25
25
*.sw?
26
26
27
27
.direnv
28
28
-
.pre-commit-config.yaml
28
28
+
.pre-commit-config.yaml
29
29
+
result
+9
default.nix
···
1
1
+
let
2
2
+
pins = import ./nix/npins;
3
3
+
pkgs = import pins.nixpkgs {
4
4
+
config = { };
5
5
+
overlays = [ ];
6
6
+
};
7
7
+
in
8
8
+
9
9
+
pkgs.callPackage ./nix/package.nix { }
+60
nix/package.nix
···
1
1
+
{
2
2
+
stdenv,
3
3
+
lib,
4
4
+
5
5
+
nodejs,
6
6
+
pnpm_10,
7
7
+
}:
8
8
+
9
9
+
let
10
10
+
fs = lib.fileset;
11
11
+
sources = fs.intersection (fs.gitTracked ../.) (
12
12
+
fs.unions [
13
13
+
../index.html
14
14
+
../package.json
15
15
+
../pnpm-lock.yaml
16
16
+
../public
17
17
+
../src
18
18
+
../tsconfig.json
19
19
+
../vite.config.js
20
20
+
]
21
21
+
);
22
22
+
src = fs.toSource {
23
23
+
root = ../.;
24
24
+
fileset = sources;
25
25
+
};
26
26
+
in
27
27
+
28
28
+
stdenv.mkDerivation (finalAttrs: {
29
29
+
pname = "password-hash-gen";
30
30
+
version = "1.0.0";
31
31
+
32
32
+
inherit src;
33
33
+
34
34
+
pnpmDeps = pnpm_10.fetchDeps {
35
35
+
inherit (finalAttrs) pname version src;
36
36
+
fetcherVersion = 2;
37
37
+
hash = "sha256-gW98ljBaFu88qIC/As0zEIWhe2MT7s0quv4hbI8P//Q=";
38
38
+
};
39
39
+
40
40
+
nativeBuildInputs = [
41
41
+
nodejs
42
42
+
pnpm_10.configHook
43
43
+
];
44
44
+
45
45
+
buildPhase = ''
46
46
+
runHook preBuild
47
47
+
48
48
+
pnpm build
49
49
+
50
50
+
runHook postBuild
51
51
+
'';
52
52
+
53
53
+
installPhase = ''
54
54
+
runHook preInstall
55
55
+
56
56
+
cp -r dist $out
57
57
+
58
58
+
runHook postInstall
59
59
+
'';
60
60
+
})