-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
34 lines (29 loc) · 706 Bytes
/
Copy pathshell.nix
File metadata and controls
34 lines (29 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ pkgs ? import <nixpkgs> {} }:
let
zine = pkgs.stdenv.mkDerivation {
pname = "zine";
version = "0.13.0";
src = pkgs.fetchurl {
url = "https://github.com/kristoff-it/zine/releases/download/v0.13.0/x86_64-linux-musl.tar.xz";
sha256 = "c250e029d978901b0c9a38eab0a860ef9db875bf686fe0f0abf61f180c280dba";
};
unpackPhase = ''
tar xf $src
'';
installPhase = ''
mkdir -p $out/bin
cp zine $out/bin/zine
chmod +x $out/bin/zine
'';
};
in
pkgs.mkShell {
buildInputs = [
pkgs.nodejs
pkgs.gnupg
zine
];
shellHook = ''
echo "Zine $(zine --version 2>/dev/null || echo 'v0.13.0') + Node.js $(node --version) ready"
'';
}