Skip to content

Commit 6955e8f

Browse files
add flake
1 parent 834b1d5 commit 6955e8f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
};
5+
outputs = { self, nixpkgs, ... }: let
6+
version = builtins.match ".*tag: ([0-9\.]*).*" (builtins.readFile ./.version);
7+
in {
8+
packages.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.writeText "text-${version}" ''
9+
This is version ${version}
10+
'';
11+
};
12+
}

0 commit comments

Comments
 (0)