Compare commits

..

3 commits

Author SHA1 Message Date
a35cc60f23 nix/backend: init 2024-07-05 13:45:42 +02:00
e877b94653 nix/native: set mainProgram 2024-07-05 13:34:26 +02:00
4f86475068 nix: use legacy packages 2024-07-05 13:31:02 +02:00
4 changed files with 22 additions and 1 deletions

View file

@ -6,7 +6,7 @@
}; };
outputs = inputs@{ self, nixpkgs, ... }: { outputs = inputs@{ self, nixpkgs, ... }: {
packages = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: import ./nix { legacyPackages = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: import ./nix {
inherit system inputs; inherit system inputs;
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
}); });

19
nix/backend.nix Normal file
View file

@ -0,0 +1,19 @@
{
lib,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "backend";
version = "0.1";
src = ../.;
cargoHash = "sha256-NRrWWD3e2zm4rVYyCPm3vQhPDRkVMauTnoENwRucXcw=";
meta = with lib; {
platforms = lib.platforms.all;
mainProgram = "backend";
};
}

View file

@ -2,4 +2,5 @@
{ {
native = pkgs.callPackage ./native.nix {}; native = pkgs.callPackage ./native.nix {};
backend = pkgs.callPackage ./backend.nix {};
} }

View file

@ -15,6 +15,7 @@ stdenv.mkDerivation {
meta = { meta = {
maintainers = with lib.maintainers; [ jopejoe1 ]; maintainers = with lib.maintainers; [ jopejoe1 ];
mainProgram = "license-tool";
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };
} }