Home

bennet @main - refs - log -
-
https://git.jolheiser.com/bennet.git
Bean boy
bennet / flake.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

  outputs = {
    self,
    nixpkgs,
  }: let
    system = "x86_64-linux";
    pkgs = nixpkgs.legacyPackages.${system};
  in {
    packages.${system}.default = pkgs.stdenv.mkDerivation {
      pname = "bennet";
      version = self.rev or "dev";
      src = ./src;
      buildPhase = ''
        runHook preBuild

        mkdir $out
        cp * $out

        runHook postBuild
      '';
    };
  };
}