File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Edited from...
2
+ # https://github.com/berbiche/sample-flake-rust/blob/601a18f165deb771404e8cd177eb0b0ad7c59ad0/flake.nix
3
+ # https://github.com/berbiche/sample-flake-rust/blob/601a18f165deb771404e8cd177eb0b0ad7c59ad0/default.nix
4
+ {
5
+ description = "The Purdue Hackers Webring" ;
6
+
7
+ inputs = {
8
+ nixpkgs . url = "github:nixos/nixpkgs/nixos-unstable" ; # We want to use packages from the binary cache
9
+ flake-utils . url = "github:numtide/flake-utils" ;
10
+ } ;
11
+
12
+ outputs = inputs @{ self , nixpkgs , flake-utils , ... } :
13
+ flake-utils . lib . eachSystem [ "x86_64-linux" ] ( system :
14
+ let
15
+ pkgs = nixpkgs . legacyPackages . ${ system } ;
16
+ gitignoreSrc = pkgs . callPackage inputs . gitignore { } ;
17
+ cargo = builtins . fromTOML ( builtins . readFile ./Cargo.toml ) ;
18
+ in rec {
19
+ packages . phwebring = pkgs . rustPlatform . buildRustPackage rec {
20
+ pname = cargo . package . name ;
21
+ version = cargo . package . version ;
22
+
23
+ src = ./. ;
24
+
25
+ nativeBuildInputs = [ pkgconfig , pkgs . openssl . dev ] ;
26
+ cargoSha256 = "" ;
27
+
28
+ meta = with stdenv . lib ; {
29
+ homepage = cargo . package . homepage ;
30
+ description = cargo . package . description ;
31
+ # TODO: Change
32
+ license = licenses . mit ;
33
+ } ;
34
+ } ;
35
+
36
+ legacyPackages = packages ;
37
+
38
+ defaultPackage = packages . phwebring ;
39
+ }
40
+ ) ;
41
+ }
You can’t perform that action at this time.
0 commit comments