-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (53 loc) · 1.54 KB
/
Copy pathflake.nix
File metadata and controls
61 lines (53 loc) · 1.54 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = {nixpkgs, ...}: let
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"x86_64-linux"
];
in {
packages = forAllSystems (system: rec {
default = oodle;
oodle = nixpkgs.legacyPackages.${system}.callPackage ({
stdenv,
cmake,
git,
fetchFromGitHub,
enableStatic ? stdenv.hostPlatform.isStatic,
lib,
}:
stdenv.mkDerivation rec {
pname = "oodle";
version = "2.9.16";
src = ./.;
nativeBuildInputs = [
cmake
git
];
cmakeFlags = [
"-S ${src}/build"
"-DFETCHCONTENT_SOURCE_DIR_SMAKE=${fetchFromGitHub {
owner = "WorkingRobot";
repo = "smake";
rev = "ab947d3000e8f7d0b188118b4205db521449cdd0";
sha256 = "sha256-kkjYOFZkBhstQ+YKtr5k5vwRriUfIuT3LVqKBg5YM3s=";
}}"
];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r ar $out
cp -r lib $out
cp -r bin $out
runHook postInstall
'';
meta = {
description = "Oodle is a family of data compression solutions with incredible world-beating performance.";
homepage = "https://www.radgametools.com/oodle.htm";
platforms = ["x86_64-linux" "aarch64-linux"];
mainProgram = "ozip";
};
}) {};
});
};
}