-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pin nixpkgs according to nix-index-database This PR should fix #87 by ensuring that what database the nix-index-database is pointing up is the nixpkgs version we will end up using in the default.nix files. For now this only changes the non-Flake version. The Flake ones will come in another PR. * Implement nixpkgs pining in Flake versions * Fix checks * Bump UUID to regenerate all nix-alien files Since there is so many changes in nix-alien right now, this commit will bump the UUID used as a base for hashing the names, so we can ensure everyone will use the new changes. * Simplify substituteInPlace calls
- Loading branch information
1 parent
0d4ef3d
commit a72ce7c
Showing
14 changed files
with
127 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
{ pkgs ? import | ||
(builtins.fetchTarball { | ||
name = "nixpkgs-unstable-@nixpkgsLastModifiedDate@"; | ||
url = "https://github.com/NixOS/nixpkgs/archive/@[email protected]"; | ||
sha256 = "@nixpkgsHash@"; | ||
}) | ||
{ } | ||
}: | ||
|
||
let | ||
inherit (pkgs) buildFHSUserEnv; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
{ pkgs ? import | ||
(builtins.fetchTarball { | ||
name = "nixpkgs-unstable-@nixpkgsLastModifiedDate@"; | ||
url = "https://github.com/NixOS/nixpkgs/archive/@[email protected]"; | ||
sha256 = "@nixpkgsHash@"; | ||
}) | ||
{ } | ||
}: | ||
|
||
let | ||
inherit (pkgs) lib stdenv; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,14 @@ def test_create_fhs_env_drv(mock_find_libs, pytestconfig): | |
assert ( | ||
fhs_env.create_fhs_env_drv("xyz", additional_packages=["libGL"]) | ||
== """\ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
{ pkgs ? import | ||
(builtins.fetchTarball { | ||
name = "nixpkgs-unstable-@nixpkgsLastModifiedDate@"; | ||
url = "https://github.com/NixOS/nixpkgs/archive/@[email protected]"; | ||
sha256 = "@nixpkgsHash@"; | ||
}) | ||
{ } | ||
}: | ||
let | ||
inherit (pkgs) buildFHSUserEnv; | ||
|
@@ -45,7 +52,14 @@ def test_create_fhs_env_drv_with_spaces(mock_find_libs, pytestconfig): | |
assert ( | ||
fhs_env.create_fhs_env_drv("x y z", additional_packages=["libGL"]) | ||
== """\ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
{ pkgs ? import | ||
(builtins.fetchTarball { | ||
name = "nixpkgs-unstable-@nixpkgsLastModifiedDate@"; | ||
url = "https://github.com/NixOS/nixpkgs/archive/@[email protected]"; | ||
sha256 = "@nixpkgsHash@"; | ||
}) | ||
{ } | ||
}: | ||
let | ||
inherit (pkgs) buildFHSUserEnv; | ||
|
@@ -81,7 +95,7 @@ def test_create_fhs_env_drv_flake(mock_machine, mock_find_libs, pytestconfig): | |
{ | ||
description = "xyz-fhs"; | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/@nixpkgsRev@"; | ||
outputs = { self, nixpkgs }: | ||
let | ||
|
@@ -106,7 +120,7 @@ def test_create_fhs_env_drv_flake(mock_machine, mock_find_libs, pytestconfig): | |
defaultApp.${system} = { | ||
type = "app"; | ||
program = "${defaultPackage.${system}}/bin/xyz-fhs"; | ||
program = "${self.outputs.defaultPackage.${system}}/bin/xyz-fhs"; | ||
}; | ||
}; | ||
} | ||
|
@@ -222,7 +236,7 @@ def test_main_with_print(monkeypatch, capsys): | |
assert ( | ||
out | ||
== """\ | ||
/home/nameless-shelter/.cache/nix-alien/b5ae45f6-276c-53a3-93ab-4a44f35976a4/fhs-env/default.nix | ||
/home/nameless-shelter/.cache/nix-alien/d51a223b-43f0-56c6-b5c8-2404823026ac/fhs-env/default.nix | ||
""" | ||
) | ||
|
||
|
@@ -232,6 +246,6 @@ def test_main_with_print(monkeypatch, capsys): | |
assert ( | ||
out | ||
== """\ | ||
/home/nameless-shelter/.cache/nix-alien/b5ae45f6-276c-53a3-93ab-4a44f35976a4/fhs-env/flake.nix | ||
/home/nameless-shelter/.cache/nix-alien/d51a223b-43f0-56c6-b5c8-2404823026ac/fhs-env/flake.nix | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.