nix-samples/flake-basic/flake.nix

20 lines
438 B
Nix
Raw Normal View History

2024-03-17 17:33:12 +01:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
name = "simple";
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
src = ./.;
in
{
packages.${system}.default = derivation {
inherit name src system;
builder = with pkgs; "${bash}/bin/bash";
args = [ "-c" "echo foo > $out" ];
};
};
}