mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-17 16:19:51 +00:00
nix: add a 'stash' package alias
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69644d284206d2502da6f21997293fecd784
This commit is contained in:
parent
dd4a9b5894
commit
514572b804
1 changed files with 9 additions and 6 deletions
15
flake.nix
15
flake.nix
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
inputs = {
|
||||||
inputs.crane.url = "github:ipetkov/crane";
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||||
|
crane.url = "github:ipetkov/crane";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
|
|
@ -11,10 +13,11 @@
|
||||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
pkgsForEach = nixpkgs.legacyPackages;
|
pkgsForEach = nixpkgs.legacyPackages;
|
||||||
in {
|
in {
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: let
|
||||||
default = pkgsForEach.${system}.callPackage ./nix/package.nix {
|
craneLib = crane.mkLib pkgsForEach.${system};
|
||||||
craneLib = crane.mkLib pkgsForEach.${system};
|
in {
|
||||||
};
|
stash = pkgsForEach.${system}.callPackage ./nix/package.nix {inherit craneLib;};
|
||||||
|
default = self.packages.${system}.stash;
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forEachSystem (system: {
|
devShells = forEachSystem (system: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue