mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Add a flake.nix
This commit is contained in:
parent
4023ae4cdf
commit
a9ceeeb4b0
2 changed files with 19 additions and 1 deletions
18
flake.nix
Normal file
18
flake.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
name = "nix";
|
||||
|
||||
description = "The purely functional package manager";
|
||||
|
||||
requires = [ flake:nixpkgs ];
|
||||
|
||||
provides = flakes: rec {
|
||||
|
||||
hydraJobs = import ./release.nix {
|
||||
nix = flakes.nix; # => flakes.self?
|
||||
nixpkgs = flakes.nixpkgs;
|
||||
};
|
||||
|
||||
packages.nix = hydraJobs.build.x86_64-linux;
|
||||
|
||||
};
|
||||
}
|
|
@ -19,7 +19,7 @@ let
|
|||
releaseTools.sourceTarball {
|
||||
name = "nix-tarball";
|
||||
version = builtins.readFile ./.version;
|
||||
versionSuffix = if officialRelease then "" else "pre${toString nix.revCount}_${nix.shortRev}";
|
||||
versionSuffix = if officialRelease then "" else "pre${toString nix.revCount or 0}_${nix.shortRev or "0000000"}";
|
||||
src = nix;
|
||||
inherit officialRelease;
|
||||
|
||||
|
|
Loading…
Reference in a new issue