Browse Source

Fix 'nix flake check'

wip-nanopi-m4v2
Eelco Dolstra 6 years ago
parent
commit
64e5f4d53b
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      flake.nix
  2. +2
    -2
      pkgs/top-level/make-tarball.nix
  3. +2
    -2
      pkgs/top-level/release.nix

+ 2
- 2
flake.nix View File

@@ -30,7 +30,7 @@
});
};

checks.tarball = jobs.tarball;
checks.x86_64-linux.tarball = jobs.tarball;

htmlDocs = {
nixpkgsManual = jobs.manual;
@@ -42,7 +42,7 @@
legacyPackages = forAllSystems (system: import ./. { inherit system; });

nixosModules = {
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
notDetected = import ./nixos/modules/installer/scan/not-detected.nix;
};
};
}

+ 2
- 2
pkgs/top-level/make-tarball.nix View File

@@ -20,7 +20,7 @@ releaseTools.sourceTarball {
versionSuffix = "pre${
if nixpkgs ? lastModified
then builtins.substring 0 8 nixpkgs.lastModified
else toString nixpkgs.revCount}.${nixpkgs.shortRev}";
else toString nixpkgs.revCount}.${nixpkgs.shortRev or "dirty"}";

buildInputs = [ nix.out jq lib-tests ];

@@ -28,7 +28,7 @@ releaseTools.sourceTarball {
eval "$preConfigure"
releaseName=nixpkgs-$VERSION$VERSION_SUFFIX
echo -n $VERSION_SUFFIX > .version-suffix
echo -n ${nixpkgs.rev or nixpkgs.shortRev} > .git-revision
echo -n ${nixpkgs.rev or nixpkgs.shortRev or "dirty"} > .git-revision
echo "release name is $releaseName"
echo "git-revision is $(cat .git-revision)"
'';


+ 2
- 2
pkgs/top-level/release.nix View File

@@ -14,9 +14,9 @@
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ]
, limitedSupportedSystems ? [ "i686-linux" ]
# Strip most of attributes when evaluating to spare memory usage
, scrubJobs ? true
, scrubJobs ? true
# Attributes passed to nixpkgs. Don't build packages marked as unfree.
, nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
, nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
}:

with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };


Loading…
Cancel
Save