Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixops-aws
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5a267e66de4b
Choose a base ref
...
head repository: NixOS/nixops-aws
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0af9c8b480c2
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 26, 2019

  1. Copy the full SHA
    0af9c8b View commit details
Showing with 6 additions and 3 deletions.
  1. +6 −3 release.nix
9 changes: 6 additions & 3 deletions release.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{ nixopsSrc ? { outPath = ./.; revCount = 0; shortRev = "abcdef"; rev = "HEAD"; }
{ src ? { outPath = ./.; revCount = 0; shortRev = "abcdef"; rev = "HEAD"; }
, officialRelease ? false
, nixpkgs ? <nixpkgs>
}:

let
pkgs = import nixpkgs { };
version = "1.7" + (if officialRelease then "" else "pre${toString nixopsSrc.revCount}_${nixopsSrc.shortRev}");
pkgs = import nixpkgs { system = "x86_64-linux"; };
version = "1.7" +
(if officialRelease then ""
else if src ? lastModified then "${builtins.substring 0 8 src.lastModified}.${src.shortRev}"
else "${toString src.revCount}_${src.shortRev}");
in

rec {