noogle/salt/flake-module.nix

23 lines
555 B
Nix
Raw Normal View History

2024-01-05 16:34:22 +03:00
{ inputs, ... }: {
2023-12-22 23:09:02 +03:00
perSystem = { self', inputs', pkgs, ... }:
let
2024-01-05 16:34:22 +03:00
nix-manual = "${inputs.nix-master}/doc/manual/src/language/derivations.md";
# https://github.com/NixOS/nix/blob/master/doc/manual/src/language/derivations.md
2023-12-22 23:09:02 +03:00
salt = pkgs.stdenv.mkDerivation {
pname = "salt-data";
version = "0.1.0";
src = ./src;
installPhase = ''
mkdir $out
cp -rf . $out
2024-01-05 16:34:22 +03:00
cp ${nix-manual} $out
2023-12-22 23:09:02 +03:00
'';
};
in
{
packages = {
inherit salt;
};
};
}