init
This commit is contained in:
commit
d8ac4e157d
5 changed files with 178 additions and 0 deletions
17
shell.nix
Normal file
17
shell.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
qpkgs ? let
|
||||
src = fetchTarball "https://github.com/Qyriad/nur-packages/archive/main.tar.gz";
|
||||
in import src { inherit pkgs; },
|
||||
PKGNAME ? import ./default.nix { inherit pkgs qpkgs; },
|
||||
}: let
|
||||
inherit (pkgs) lib;
|
||||
|
||||
mkDevShell = PKGNAME: qpkgs.callPackage PKGNAME.mkDevShell { };
|
||||
devShell = mkDevShell PKGNAME;
|
||||
|
||||
byStdenv = lib.mapAttrs (lib.const mkDevShell) PKGNAME.byStdenv;
|
||||
|
||||
in devShell.overrideAttrs (prev: lib.recursiveUpdate prev {
|
||||
passthru = { inherit byStdenv; };
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue