enable flakes
This commit is contained in:
parent
a6409c249a
commit
c5ffccf45c
4 changed files with 35 additions and 8 deletions
|
|
@ -1,7 +1,4 @@
|
||||||
# default.nix
|
{pkgs,...}:
|
||||||
let
|
|
||||||
pkgs = import <nixpkgs> { config = {}; overlays = []; };
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
xbuild = pkgs.callPackage ./pkgs/x/xbuild/package.nix {};
|
xbuild = pkgs.callPackage ./pkgs/x/xbuild/package.nix {};
|
||||||
cedro = pkgs.callPackage ./pkgs/c/cedro/package.nix {};
|
cedro = pkgs.callPackage ./pkgs/c/cedro/package.nix {};
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@
|
||||||
{
|
{
|
||||||
packages = forAllSystems (system: let
|
packages = forAllSystems (system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in
|
||||||
xbuild = pkgs.callPackage ./pkgs/x/xbuild/package.nix {};
|
import ./default.nix { inherit pkgs; });
|
||||||
cedro = pkgs.callPackage ./pkgs/c/cedro/package.nix {};
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
29
pkgs/c/cedro/package.nix
Normal file
29
pkgs/c/cedro/package.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# cedro.nix
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
zip,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "cedro";
|
||||||
|
version = "0.0.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "shen390s";
|
||||||
|
repo = "cedro";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-DLq7vC+4k2TMy5jKvQkFTy+xZmpvl0+DiWcd7CBVbgw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
zip
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp bin/* $out/bin
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
autoconf,
|
autoconf,
|
||||||
automake,
|
automake,
|
||||||
libtool,
|
libtool,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue