Unify the Nixpkgs and NixOS version numbers
This commit is contained in:
parent
3293421dd3
commit
041da5a6f9
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<title>Nixpkgs Manual</title>
|
<title>Nixpkgs Manual</title>
|
||||||
|
|
||||||
<subtitle>Draft (Version <xi:include href="../VERSION"
|
<subtitle>Draft (Version <xi:include href="../.version"
|
||||||
parse="text" />)</subtitle>
|
parse="text" />)</subtitle>
|
||||||
|
|
||||||
<author>
|
<author>
|
||||||
|
@ -1 +0,0 @@
|
|||||||
13.09
|
|
@ -14,16 +14,9 @@ getVersion() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if nixos=$(nix-instantiate --find-file nixos "$@"); then
|
if nixpkgs=$(nix-instantiate --find-file nixpkgs "$@"); then
|
||||||
getVersion $nixos
|
getVersion $nixpkgs
|
||||||
if [ -n "$rev" ]; then
|
if [ -n "$rev" ]; then
|
||||||
suffix="pre-$rev"
|
echo "pre-$rev"
|
||||||
if nixpkgs=$(nix-instantiate --find-file nixpkgs "$@"); then
|
|
||||||
getVersion $nixpkgs
|
|
||||||
if [ -n "$rev" ]; then
|
|
||||||
suffix+="-$rev"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
echo $suffix
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -26,10 +26,10 @@ with pkgs.lib;
|
|||||||
config = {
|
config = {
|
||||||
|
|
||||||
system.nixosVersion =
|
system.nixosVersion =
|
||||||
mkDefault (builtins.readFile ../../.version + config.system.nixosVersionSuffix);
|
mkDefault (builtins.readFile ../../../.version + config.system.nixosVersionSuffix);
|
||||||
|
|
||||||
system.nixosVersionSuffix =
|
system.nixosVersionSuffix =
|
||||||
mkDefault (if builtins.pathExists ../../.version-suffix then builtins.readFile ../../.version-suffix else "pre-git");
|
mkDefault (if builtins.pathExists ../../../.version-suffix then builtins.readFile ../../../.version-suffix else "pre-git");
|
||||||
|
|
||||||
# Note: code names must only increase in alphabetical order.
|
# Note: code names must only increase in alphabetical order.
|
||||||
system.nixosCodeName = "Aardvark";
|
system.nixosCodeName = "Aardvark";
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
version = builtins.readFile ./.version;
|
version = builtins.readFile ../.version;
|
||||||
versionSuffix = "pre${toString nixosSrc.revCount}_${nixosSrc.shortRev}-${nixpkgs.shortRev}";
|
versionSuffix = "pre${toString nixpkgs.revCount}_${nixpkgs.shortRev}";
|
||||||
|
|
||||||
systems = [ "x86_64-linux" "i686-linux" ];
|
systems = [ "x86_64-linux" "i686-linux" ];
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Hydra job to build a tarball for Nixpkgs from a SVN checkout. It
|
/* Hydra job to build a tarball for Nixpkgs from a Git checkout. It
|
||||||
also builds the documentation and tests whether the Nix expressions
|
also builds the documentation and tests whether the Nix expressions
|
||||||
evaluate correctly. */
|
evaluate correctly. */
|
||||||
|
|
||||||
@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
with import nixpkgs.outPath {};
|
with import nixpkgs.outPath {};
|
||||||
|
|
||||||
releaseTools.sourceTarball {
|
releaseTools.sourceTarball rec {
|
||||||
name = "nixpkgs-tarball";
|
name = "nixpkgs-tarball";
|
||||||
src = nixpkgs;
|
src = nixpkgs;
|
||||||
inherit officialRelease;
|
|
||||||
|
|
||||||
version = builtins.readFile ../../VERSION;
|
inherit officialRelease;
|
||||||
versionSuffix = if officialRelease then "" else "pre${toString nixpkgs.revCount}_${nixpkgs.shortRev}";
|
version = builtins.readFile ../../.version;
|
||||||
|
versionSuffix = "pre${toString nixpkgs.revCount}_${nixpkgs.shortRev}";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
lzma
|
lzma
|
||||||
@ -26,8 +26,8 @@ releaseTools.sourceTarball {
|
|||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
eval "$preConfigure"
|
eval "$preConfigure"
|
||||||
releaseName=nixpkgs-$VERSION$VERSION_SUFFIX
|
releaseName=nixpkgs-$VERSION$VERSION_SUFFIX
|
||||||
|
echo -n $VERSION_SUFFIX > .version-suffix
|
||||||
echo "release name is $releaseName"
|
echo "release name is $releaseName"
|
||||||
echo $releaseName > relname
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontBuild = false;
|
dontBuild = false;
|
||||||
@ -47,7 +47,7 @@ releaseTools.sourceTarball {
|
|||||||
nix-store --init
|
nix-store --init
|
||||||
|
|
||||||
# Run the regression tests in `lib'.
|
# Run the regression tests in `lib'.
|
||||||
res="$(nix-instantiate --eval-only --strict --show-trace pkgs/lib/tests.nix)"
|
res="$(nix-instantiate --eval-only --strict --show-trace lib/tests.nix)"
|
||||||
if test "$res" != "[ ]"; then
|
if test "$res" != "[ ]"; then
|
||||||
echo "regression tests for lib failed, got: $res"
|
echo "regression tests for lib failed, got: $res"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user