fetchFromGitHub: force re-fetch when rev changes #11

Merged
bbjubjub2494 merged 4 commits from fetchgithub-refetch into main 2024-05-21 05:45:52 +00:00
2 changed files with 16 additions and 4 deletions

View file

@ -27,6 +27,7 @@ lib.makeOverridable (
, # Impure env vars (https://nixos.org/nix/manual/#sec-advanced-attributes)
# needed for netrcPhase
netrcImpureEnvVars ? []
, passthru ? {}
, meta ? {}
, allowedRequisites ? null
}:
@ -103,7 +104,7 @@ stdenvNoCC.mkDerivation {
inherit preferLocalBuild meta allowedRequisites;
passthru = {
passthru = passthru // {
gitRepoUrl = url;
};
}

View file

@ -1,22 +1,30 @@
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
{ lib, fetchgit, fetchzip }:
lib.makeOverridable (
{ owner, repo, rev, name ? "source"
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
{ owner, repo, rev
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
, name ? null # Override with null to use the default value
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
, pname ? "source-${githubBase}-${owner}-${repo}"
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
, fetchSubmodules ? false, leaveDotGit ? null
bbjubjub2494 commented 2024-05-19 08:47:48 +00:00 (Migrated from github.com)
Review

/nix/store/f291banfgj2vjz1qsvmpm09awn2gl4pj-source-github.com-pypa-build-refs-tags-1.1.1.drv wdyt @Sorixelle ?

`/nix/store/f291banfgj2vjz1qsvmpm09awn2gl4pj-source-github.com-pypa-build-refs-tags-1.1.1.drv` wdyt @Sorixelle ?
, deepClone ? false, private ? false, forceFetchGit ? false
, sparseCheckout ? []
, githubBase ? "github.com", varPrefix ? null
, passthru ? { }
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
, meta ? { }
, ... # For hash agility
}@args:
let
name = if args.name or null != null then args.name
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
else "${pname}-${rev}";
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
position = (if args.meta.description or null != null
then builtins.unsafeGetAttrPos "description" args.meta
else builtins.unsafeGetAttrPos "rev" args
);
baseUrl = "https://${githubBase}/${owner}/${repo}";
newPassthru = passthru // {
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
inherit rev owner repo;
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
};
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
newMeta = meta // {
homepage = meta.homepage or baseUrl;
} // lib.optionalAttrs (position != null) {
@ -53,16 +61,19 @@ let
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
fetcherArgs = (if useFetchGit
then {
inherit rev deepClone fetchSubmodules sparseCheckout; url = gitRepoUrl;
passthru = newPassthru;
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
} // lib.optionalAttrs (leaveDotGit != null) { inherit leaveDotGit; }
else {
url = "${baseUrl}/archive/${rev}.tar.gz";
passthru = {
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
passthru = newPassthru // {
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
inherit gitRepoUrl;
};
}
) // privateAttrs // passthruAttrs // { inherit name; };
in
fetcher fetcherArgs // { meta = newMeta; inherit rev owner repo; }
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
(fetcher fetcherArgs).overrideAttrs (finalAttrs: previousAttrs: {
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
meta = newMeta;
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
})
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
)

Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.
Sorixelle commented 2024-05-19 08:11:11 +00:00 (Migrated from github.com)
Review

TBH, I'd also change source to something like github-repo, just to make it clearer in the name that the derivation comes from a GitHub checkout.

TBH, I'd also change `source` to something like `github-repo`, just to make it clearer in the name that the derivation comes from a GitHub checkout.
Sorixelle commented 2024-05-19 08:12:06 +00:00 (Migrated from github.com)
Review

nit:

, name ? null # Override with null to use the default value
nit: ```suggestion , name ? null # Override with null to use the default value ```
bbjubjub2494 commented 2024-05-19 08:24:50 +00:00 (Migrated from github.com)
Review

Here's a slightly different proposal: append the github base url as provenance like so: /nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv. That's a good self-description, leaves the source that people might be used to, and generalizes unambiguously to other fetchFroms. We can also put it before the owner.

Here's a slightly different proposal: append the github base url as provenance like so: `/nix/store/wzvnh3p7gv1qlqhb3iif878bfffzrvaz-source-pypa-build-refs-tags-1.1.1-github.com.drv`. That's a good self-description, leaves the `source` that people might be used to, and generalizes unambiguously to other `fetchFrom`s. We can also put it before the `owner`.
Sorixelle commented 2024-05-20 05:45:55 +00:00 (Migrated from github.com)
Review

Only potential issue I see is creating some pretty long path names, but I don't see it being a massive issue. Seems fine to me.

Only potential issue I see is creating some pretty long path names, but I don't see it being a *massive* issue. Seems fine to me.