Skip to content

Commit 107fa3f

Browse files
committed
write a flake file for zigverm
1 parent 5fc3f6d commit 107fa3f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

flake.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
description = "Version Manager for the Zig Programming Language";
3+
4+
inputs.flake-utils.url = "github:numtide/flake-utils";
5+
6+
outputs = { self, nixpkgs, flake-utils }:
7+
flake-utils.lib.eachDefaultSystem (system: {
8+
packages.zigverm =
9+
with import nixpkgs { inherit system; };
10+
stdenv.mkDerivation(finalAttrs: {
11+
name = "zigverm";
12+
version = "0.6.2";
13+
14+
src = fetchFromGitHub {
15+
owner = "AMythicDev";
16+
repo = "zigverm";
17+
rev = "v${finalAttrs.version}";
18+
hash = "sha256-RcvDzA4gpyzRxsJQgxOpZT9MAkD9kndov0r6QQyr/DY=";
19+
};
20+
21+
nativeBuildInputs = [
22+
zig_0_13.hook
23+
];
24+
});
25+
defaultPackage = self.packages.${system}.zigverm;
26+
}
27+
);
28+
}

0 commit comments

Comments
 (0)