Init
This commit is contained in:
commit
94fb8b3c7b
10 changed files with 986 additions and 0 deletions
40
flake.nix
Normal file
40
flake.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
...
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
packages.${system}.default = let
|
||||
pP = pkgs.perlPackages;
|
||||
in
|
||||
pkgs.perlPackages.buildPerlPackage rec {
|
||||
pname = "SignControl";
|
||||
version = "0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
propagatedBuildInputs = [pP.DigestCRC pP.ModuleBuild];
|
||||
nativeBuildInputs = [pkgs.shortenPerlShebang];
|
||||
|
||||
postInstall = ''
|
||||
shortenPerlShebang $out/bin/signcontrol
|
||||
'';
|
||||
};
|
||||
devShells.${system}.default =
|
||||
pkgs.mkShell
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
(pkgs.perl.withPackages
|
||||
(x: [
|
||||
x.DigestCRC
|
||||
x.ModuleBuild
|
||||
]))
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue