Rework skal to be the shared nix-wrapper module

This commit is contained in:
Alexander Heldt
2023-11-11 23:41:55 +01:00
parent ea9de56810
commit dd3fd7dce6
4 changed files with 115 additions and 68 deletions

View File

@@ -0,0 +1,39 @@
{
description = "";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }:
let
systems = [ "x86_64-linux" ];
in
{
packages = nixpkgs.lib.genAttrs systems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
# `derivation` may be filled out or switched
# to something like `pkgs.buildGoModule`
default = derivation {
src = ./SRC_PATH;
};
hello = pkgs.hello;
}
);
devShells = nixpkgs.lib.genAttrs systems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShell {
packages = [];
};
}
);
};
}