cleaned up flake file
This commit is contained in:
parent
7f682b82d5
commit
adca02ef27
1 changed files with 28 additions and 27 deletions
55
flake.nix
55
flake.nix
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
libgourou-utils.url = "github:BentonEdmondson/libgourou-utils";
|
libgourou-utils.url = "github:BentonEdmondson/libgourou-utils";
|
||||||
|
@ -16,33 +15,35 @@
|
||||||
inept-epub = flakes.inept-epub.defaultPackage.x86_64-linux;
|
inept-epub = flakes.inept-epub.defaultPackage.x86_64-linux;
|
||||||
in {
|
in {
|
||||||
defaultPackage.x86_64-linux = nixpkgs.stdenv.mkDerivation {
|
defaultPackage.x86_64-linux = nixpkgs.stdenv.mkDerivation {
|
||||||
pname = "knock";
|
pname = "knock";
|
||||||
version = "0.1.0-alpha";
|
version = "0.1.0-alpha";
|
||||||
src = self;
|
src = self;
|
||||||
nativeBuildInputs = [ nixpkgs.makeWrapper ];
|
|
||||||
buildInputs = [
|
|
||||||
(nixpkgs.python3.withPackages(python3Packages: [ python3Packages.python_magic ]))
|
|
||||||
libgourou-utils inept-epub
|
|
||||||
];
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
chmod +x knock
|
|
||||||
cp knock $out/bin
|
|
||||||
wrapProgram $out/bin/knock --prefix PATH : ${nixpkgs.lib.makeBinPath [libgourou-utils inept-epub]}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
nativeBuildInputs = [ nixpkgs.makeWrapper ];
|
||||||
description = "A CLI tool to convert ACSM files to DRM-free EPUB files";
|
|
||||||
homepage = "https://github.com/BentonEdmondson/knock";
|
buildInputs = [
|
||||||
license = [ nixpkgs.lib.licenses.gpl3Only ];
|
(nixpkgs.python3.withPackages(python3Packages: [ python3Packages.python_magic ]))
|
||||||
maintainers = [{
|
libgourou-utils inept-epub
|
||||||
name = "Benton Edmondson";
|
];
|
||||||
email = "bentonedmondson@gmail.com";
|
|
||||||
}];
|
installPhase = ''
|
||||||
# potentially others, but I'm only listed those tested
|
mkdir -p $out/bin
|
||||||
platforms = [ "x86_64-linux" ];
|
chmod +x knock
|
||||||
};
|
cp knock $out/bin
|
||||||
|
wrapProgram $out/bin/knock --prefix PATH : ${nixpkgs.lib.makeBinPath [libgourou-utils inept-epub]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A CLI tool to convert ACSM files to DRM-free EPUB files";
|
||||||
|
homepage = "https://github.com/BentonEdmondson/knock";
|
||||||
|
license = [ nixpkgs.lib.licenses.gpl3Only ];
|
||||||
|
maintainers = [{
|
||||||
|
name = "Benton Edmondson";
|
||||||
|
email = "bentonedmondson@gmail.com";
|
||||||
|
}];
|
||||||
|
# potentially others, but I'm only listed those tested
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue