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
|
||||
let
|
||||
pkgs = import <nixpkgs> { config = {}; overlays = []; };
|
||||
in
|
||||
{pkgs,...}:
|
||||
{
|
||||
xbuild = pkgs.callPackage ./pkgs/x/xbuild/package.nix {};
|
||||
cedro = pkgs.callPackage ./pkgs/c/cedro/package.nix {};
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
{
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
xbuild = pkgs.callPackage ./pkgs/x/xbuild/package.nix {};
|
||||
cedro = pkgs.callPackage ./pkgs/c/cedro/package.nix {};
|
||||
});
|
||||
in
|
||||
import ./default.nix { inherit pkgs; });
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
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,
|
||||
automake,
|
||||
libtool,
|
||||
...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue