Compare commits
3 commits
2d15d63dcb
...
a35cc60f23
Author | SHA1 | Date | |
---|---|---|---|
a35cc60f23 | |||
e877b94653 | |||
4f86475068 |
4 changed files with 22 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
};
|
||||
|
||||
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;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
});
|
||||
|
|
19
nix/backend.nix
Normal file
19
nix/backend.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
{
|
||||
native = pkgs.callPackage ./native.nix {};
|
||||
backend = pkgs.callPackage ./backend.nix {};
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ stdenv.mkDerivation {
|
|||
|
||||
meta = {
|
||||
maintainers = with lib.maintainers; [ jopejoe1 ];
|
||||
mainProgram = "license-tool";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue