mirror of
https://github.com/ihaveamac/ninfs.git
synced 2025-06-18 17:05:32 -04:00
default.nix: read from flake.lock to get pyctr repo instead of using getFlake
This commit is contained in:
parent
5898401dae
commit
03a6ea50aa
25
default.nix
25
default.nix
@ -1,13 +1,28 @@
|
|||||||
{
|
{
|
||||||
pkgs ? import <nixpkgs> {},
|
pkgs ? import <nixpkgs> { },
|
||||||
# just so i can use the same pinned version as the flake...
|
# just so i can use the same pinned version as the flake...
|
||||||
pyctr ? (import (builtins.getFlake (builtins.toString ./.)).inputs.pyctr { inherit pkgs; }).pyctr
|
pyctr ? (
|
||||||
|
let
|
||||||
|
flakeLock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||||
|
pyctr-repo = import (builtins.fetchTarball (
|
||||||
|
with flakeLock.nodes.pyctr.locked;
|
||||||
|
{
|
||||||
|
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
||||||
|
}
|
||||||
|
)) { inherit pkgs; };
|
||||||
|
in
|
||||||
|
pyctr-repo.pyctr
|
||||||
|
),
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
haccrypto = pkgs.python3Packages.callPackage ./nix/haccrypto.nix {};
|
haccrypto = pkgs.python3Packages.callPackage ./nix/haccrypto.nix { };
|
||||||
mfusepy = pkgs.python3Packages.callPackage ./nix/mfusepy.nix {};
|
mfusepy = pkgs.python3Packages.callPackage ./nix/mfusepy.nix { };
|
||||||
ninfs = pkgs.python3Packages.callPackage ./package.nix { inherit pyctr; haccrypto = haccrypto; mfusepy = mfusepy; };
|
ninfs = pkgs.python3Packages.callPackage ./package.nix {
|
||||||
|
inherit pyctr;
|
||||||
|
haccrypto = haccrypto;
|
||||||
|
mfusepy = mfusepy;
|
||||||
|
};
|
||||||
ninfsNoGUI = ninfs.override { withGUI = false; };
|
ninfsNoGUI = ninfs.override { withGUI = false; };
|
||||||
#ninfsNoGUI = pkgs.python3Packages.callPackage ./ninfs.nix { haccrypto = haccrypto; mfusepy = mfusepy; withGUI = false; };
|
#ninfsNoGUI = pkgs.python3Packages.callPackage ./ninfs.nix { haccrypto = haccrypto; mfusepy = mfusepy; withGUI = false; };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user