mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2025-03-16 21:38:24 +00:00
Merge pull request #210 from MatthewCroughan/mc/explicit-inputs
templates: make flake-parts input explicit
This commit is contained in:
commit
60c614008e
5 changed files with 12 additions and 7 deletions
|
@ -15,18 +15,17 @@ hci-effects.mkEffect {
|
||||||
nix -v flake init -t ${../..}
|
nix -v flake init -t ${../..}
|
||||||
|
|
||||||
ann pointing to local sources...
|
ann pointing to local sources...
|
||||||
sed -i flake.nix -e 's^nixpkgs.url = ".*";^nixpkgs.url = "${path}"; flake-parts.url = "${../..}";^'
|
|
||||||
# head flake.nix
|
override=(--override-input flake-parts ${../..})
|
||||||
grep -F ${path} flake.nix >/dev/null
|
|
||||||
|
|
||||||
ann nix flake lock...
|
ann nix flake lock...
|
||||||
nix flake lock
|
nix flake lock "''${override[@]}"
|
||||||
|
|
||||||
ann nix flake show...
|
ann nix flake show...
|
||||||
nix -v flake show
|
nix -v flake show "''${override[@]}"
|
||||||
|
|
||||||
ann nix build...
|
ann nix build...
|
||||||
nix build .
|
nix build . "''${override[@]}"
|
||||||
|
|
||||||
ann checking result...
|
ann checking result...
|
||||||
readlink ./result | grep hello
|
readlink ./result | grep hello
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
description = "Description for the project";
|
description = "Description for the project";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
description = "Description for the project";
|
description = "Description for the project";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
description = "Description for the project";
|
description = "Description for the project";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
{
|
{
|
||||||
description = "Description for the project";
|
description = "Description for the project";
|
||||||
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
|
Loading…
Add table
Reference in a new issue