Compare commits

..

No commits in common. "06cb5398e328d4e649e834bfad4d010881f32822" and "1bc7b0ec2fe458882c4f58e3a639815af052b5f2" have entirely different histories.

2 changed files with 2 additions and 25 deletions

2
.gitignore vendored
View file

@ -1,3 +1 @@
/target /target
/result
/shows.yaml

View file

@ -5,32 +5,11 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
}; };
buildDeps = { in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [ ffmpeg openssl ]; buildInputs = with pkgs; [ ffmpeg openssl ];
nativeBuildInputs = with pkgs; [ rustc cargo pkgconfig clang ]; nativeBuildInputs = with pkgs; [ rustc cargo pkgconfig clang ];
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
}; };
pname = "screencap-bot";
version = "0.1";
in rec {
packages.x86_64-linux."${pname}-unwrapped" = pkgs.rustPlatform.buildRustPackage ({
inherit pname version;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
} // buildDeps);
packages.x86_64-linux.${pname} = pkgs.symlinkJoin {
name = "${pname}-${version}";
paths = [ packages.x86_64-linux."${pname}-unwrapped" ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/${pname} \
--prefix PATH : ${pkgs.ffmpeg}/bin
'';
};
packages.x86_64-linux.default = packages.x86_64-linux.${pname};
devShells.x86_64-linux.default = pkgs.mkShell buildDeps;
}; };
} }