diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2018-04-26 10:31:05 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2018-04-28 14:23:53 +0200 |
commit | 9274ea390348e17f766732e7fbd335e3bc164954 (patch) | |
tree | ea75418843caff7129e5b9b87434e59f9cac0ef1 /nixos/maintainers/scripts/ec2/create-amis.sh | |
parent | 39909289f452fcd60127cbd2372f22ac35f25d08 (diff) | |
download | nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.tar nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.tar.gz nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.tar.bz2 nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.tar.lz nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.tar.xz nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.tar.zst nixpkgs-9274ea390348e17f766732e7fbd335e3bc164954.zip |
treewide: rename version attributes
As suggested in https://github.com/NixOS/nixpkgs/pull/39416#discussion_r183845745 the versioning attributes in `lib` should be consistent to `nixos/version` which implicates the following changes: * `lib.trivial.version` -> `lib.trivial.release` * `lib.trivial.suffix` -> `lib.trivial.versionSuffix` * `lib.nixpkgsVersion` -> `lib.version` As `lib.nixpkgsVersion` is referenced several times in `NixOS/nixpkgs`, `NixOS/nix` and probably several user's setups. As the rename will cause a notable impact it's better to keep `lib.nixpkgsVersion` as alias with a warning yielded by `builtins.trace`.
Diffstat (limited to 'nixos/maintainers/scripts/ec2/create-amis.sh')
-rwxr-xr-x | nixos/maintainers/scripts/ec2/create-amis.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 347e6b9c6e0..9461144fad5 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -6,7 +6,7 @@ set -e set -o pipefail -version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.nixpkgsVersion | sed s/'"'//g) +version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.version | sed s/'"'//g) major=${version:0:5} echo "NixOS version is $version ($major)" |