Initial commit
This commit is contained in:
commit
bb86289815
5 changed files with 97 additions and 0 deletions
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# CG Overlay
|
||||||
|
|
||||||
|
[](https://brothermechanic.cachix.org)
|
||||||
|
|
||||||
|
Computer Graphics media packages.
|
5
default.nix
Normal file
5
default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ system ? builtins.currentSystem, pkgs ? import <nixpkgs> { inherit system; } }:
|
||||||
|
|
||||||
|
rec {
|
||||||
|
cork = pkgs.callPackage ./pkgs/cork { };
|
||||||
|
}
|
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1670498129,
|
||||||
|
"narHash": "sha256-QOWbsKObHxNpBzrIVJrgR2TGQdwyYNFgBdoVCCvYuDU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "52665b05cfd702e12b877aa519b62374d003231a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
19
flake.nix
Normal file
19
flake.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
description = " Computer Graphics Overlay";
|
||||||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
outputs = { self, nixpkgs }: let
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"i686-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
"armv6l-linux"
|
||||||
|
"armv7l-linux"
|
||||||
|
];
|
||||||
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
||||||
|
in {
|
||||||
|
packages = forAllSystems (system: import ./default.nix {
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
41
pkgs/cork/default.nix
Normal file
41
pkgs/cork/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib, fetchFromGitHub, pkgs, stdenv }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "cork";
|
||||||
|
version = "unstable";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "gilbo";
|
||||||
|
repo = "cork";
|
||||||
|
rev = "5987de50801d1ce3dedc91307d478594459662d6";
|
||||||
|
sha256 = "sha256-CmSq3vFddgFmSwjtGOI5s5imZMvsjNgPi43BdQxCNwI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ ];
|
||||||
|
buildInputs = [
|
||||||
|
pkgs.clang
|
||||||
|
pkgs.llvm
|
||||||
|
pkgs.gmp
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mkdir -p $out/lib64
|
||||||
|
mkdir -p $out/include
|
||||||
|
|
||||||
|
cp bin/* $out/bin/
|
||||||
|
cp lib/* $out/lib64/
|
||||||
|
cp include/* $out/include/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Cork - a powerful standalone boolean calculations software";
|
||||||
|
longDescription = ''
|
||||||
|
Cork is designed to support Boolean operations between triangle meshes.
|
||||||
|
'';
|
||||||
|
homepage = "https://github.com/gilbo/cork";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = [ "brothermechanic\u00e8s <brothermechanic@gmail.com>" ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
priority = 6; # resolves collision
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue