chore(nix): use self
for version
Signed-off-by: seth <getchoo@tuta.io> (cherry picked from commit 63b10738b2a1065d55077e729fcada6e7f64d10a)
This commit is contained in:
parent
5f06517b62
commit
31031ec923
26
flake.nix
26
flake.nix
@ -85,24 +85,18 @@
|
|||||||
|
|
||||||
formatter = forAllSystems (system: nixpkgsFor.${system}.nixfmt-rfc-style);
|
formatter = forAllSystems (system: nixpkgsFor.${system}.nixfmt-rfc-style);
|
||||||
|
|
||||||
overlays.default =
|
overlays.default = final: prev: {
|
||||||
final: prev:
|
prismlauncher-unwrapped = prev.callPackage ./nix/unwrapped.nix {
|
||||||
let
|
inherit
|
||||||
version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
|
libnbtplusplus
|
||||||
in
|
nix-filter
|
||||||
{
|
self
|
||||||
prismlauncher-unwrapped = prev.callPackage ./nix/unwrapped.nix {
|
;
|
||||||
inherit
|
|
||||||
libnbtplusplus
|
|
||||||
nix-filter
|
|
||||||
self
|
|
||||||
version
|
|
||||||
;
|
|
||||||
};
|
|
||||||
|
|
||||||
prismlauncher = final.callPackage ./nix/wrapper.nix { };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prismlauncher = final.callPackage ./nix/wrapper.nix { };
|
||||||
|
};
|
||||||
|
|
||||||
packages = forAllSystems (
|
packages = forAllSystems (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
self,
|
self,
|
||||||
stripJavaArchivesHook,
|
stripJavaArchivesHook,
|
||||||
tomlplusplus,
|
tomlplusplus,
|
||||||
version,
|
|
||||||
zlib,
|
zlib,
|
||||||
|
|
||||||
msaClientID ? null,
|
msaClientID ? null,
|
||||||
@ -28,7 +27,7 @@ assert lib.assertMsg (
|
|||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "prismlauncher-unwrapped";
|
pname = "prismlauncher-unwrapped";
|
||||||
inherit version;
|
version = self.shortRev or self.dirtyShortRev or "unknown";
|
||||||
|
|
||||||
src = nix-filter.lib {
|
src = nix-filter.lib {
|
||||||
root = self;
|
root = self;
|
||||||
|
Loading…
Reference in New Issue
Block a user