mirror of
https://github.com/ihaveamac/custom-install.git
synced 2026-06-07 04:37:13 +00:00
initial python packaging and nix flake
This commit is contained in:
34
default.nix
Normal file
34
default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
# just so i can use the same pinned version as the flake...
|
||||
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
|
||||
),
|
||||
save3ds ? (
|
||||
let
|
||||
flakeLock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
hax-nur-repo = import (builtins.fetchTarball (
|
||||
with flakeLock.nodes.hax-nur.locked;
|
||||
{
|
||||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
||||
}
|
||||
)) { inherit pkgs; };
|
||||
in
|
||||
hax-nur-repo.save3ds
|
||||
),
|
||||
}:
|
||||
|
||||
rec {
|
||||
custominstall = pkgs.python3Packages.callPackage ./package.nix {
|
||||
inherit pyctr save3ds;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user