-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (28 loc) · 1.02 KB
/
flake.nix
File metadata and controls
32 lines (28 loc) · 1.02 KB
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
26
27
28
29
30
31
32
{
description = "Derivation for the poti library";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
packages.poti = pkgs.stdenv.mkDerivation (finalAttrs: {
name = "poti";
version = "5.0";
inherit system;
src = ./.;
nativeBuildInputs = with pkgs; [ perl cmake ];
# poti's cmake version is less then 3.5, so i need to tell it do it anyway.
cmakeFlags = [ "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" ];
doCheck = true;
});
defaultPackage = self.packages.${system}.poti;
devShells.default = pkgs.mkShell {
buildInputs = [ self.packages.${system}.poti ];
};
}
);
}