8000 add nix-update-script for all known fetchers by figsoda · Pull Request #849 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ async fn run() -> Result<()> {
(out_dir, output.clone())
};

let nix_update_script = matches!(fetcher, MaybeFetcher::Known(ref f) if !matches!(f, FetcherDispatch::FetchFromGitHub(_)));
let nix_update_script = matches!(fetcher, MaybeFetcher::Known(_));
let fetcher_input = match fetcher {
MaybeFetcher::Known(fetcher) => fetcher.to_string(),
MaybeFetcher::Unknown { fetcher } => fetcher,
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/drv-no-cc.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
Expand All @@ -17,6 +18,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-nuw/riQaAdk0fYUpm3z978YGPDJnzc66DnOj774tPu0=";
};

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/z-shell/zi";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/drv-rust.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
libpulseaudio,
pango,
udev,
nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -64,6 +65,8 @@ stdenv.mkDerivation (finalAttrs: {
udev
];

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/ErikReider/SwayOSD";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/drv.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
fetchFromGitHub,
meson,
ninja,
nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
Expand All @@ -24,6 +25,8 @@ stdenv.mkDerivation (finalAttrs: {
ninja
];

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/containers/bubblewrap";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/go.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:

buildGoModule (finalAttrs: {
Expand All @@ -25,6 +26,8 @@ buildGoModule (finalAttrs: {
"-X=main.revision=${finalAttrs.src.rev}"
];

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/junegunn/fzf";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/npm.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:

buildNpmPackage (finalAttrs: {
Expand All @@ -20,6 +21,8 @@ buildNpmPackage (finalAttrs: {

dontNpmBuild = true;

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/piuccio/cowsay";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/python-app.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
python3Packages,
fetchFromGitHub,
nix-update-script,
}:

python3Packages.buildPythonApplication (finalAttrs: {
Expand Down Expand Up @@ -54,6 +55,8 @@ python3Packages.buildPythonApplication (finalAttrs: {
"black"
];

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/psf/black";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/python-lib.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
flit-core,
markupsafe,
babel,
nix-update-script,
}:

buildPythonPackage (finalAttrs: {
Expand Down Expand Up @@ -38,6 +39,8 @@ buildPythonPackage (finalAttrs: {
"jinja2"
];

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/pallets/jinja";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/python-rust.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
pytest-cov,
pytest-xdist,
pytest-randomly,
nix-update-script,
}:

buildPythonPackage (finalAttrs: {
Expand Down Expand Up @@ -114,6 +115,8 @@ buildPythonPackage (finalAttrs: {
"cryptography"
];

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/pyca/cryptography";
Expand Down
3 changes: 3 additions & 0 deletions tests/cmd/rust.out/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
sqlite,
zlib,
zstd,
nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
Expand Down Expand Up @@ -46,6 +47,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
ZSTD_SYS_USE_PKG_CONFIG = true;
};

passthru.updateScript = nix-update-script { };

meta = {
description = "[..]";
homepage = "https://github.com/nix-community/nix-init";
Expand Down
0